package main.social.dao;

import main.social.entities.Accounts;
import java.util.List;

public interface AccountDao extends GenericDao<Accounts, Long>{

    Accounts findAccountById(long id);
	List<Accounts> findAllAccounts();
    boolean insertAccount(Accounts account);
    boolean updateAccount(Accounts account);
    boolean removeAccount(Accounts account);
    Accounts findAccountByUsername(final String username);
    Accounts findAccountByEmail(final String email);
    Accounts newEntityInstance();
    
    boolean Login(String username, String password);
}
